Repository navigation
feat!: support GraphQL Code Generator 7.4.2+ and 8 only - #11
Merged
Merged
Conversation
The plugin now requires codegen 7.4.2 or 8, typescript-operations 6 or 7, graphql 16 and Vue 3.3. Deep type imports use a ".js" suffix, because TypeScript reported TS2307 under "moduleResolution": "bundler". Adds e2e tests that pack the packages and run them against minimum and latest versions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Support GraphQL Code Generator 7.4.2+ and 8, and drop older versions.
Breaking changes
@graphql-codegen/cli7.4.2 or 8. Version 7.0 to 7.4.1 can't load plugins under pnpm.typescript-operations6 or 7,typed-document-node7 or 8.graphql16, Vue 3.3+, Node.js 22+.plugin,validate). The default export is gone.Features
validate()export that rejects output files that are not TypeScript. It supports both the codegen 7 and codegen 8 signatures.near-operation-fileandvue-query-blocksupport Vite 5 to 8.Fixes
@vue/apollo-composableuse a.jssuffix. They failed with TS2307 under"moduleResolution": "bundler".vue-query-blockthrows on Vue SFC parse errors.Tests
New e2e tests in
e2e/. They pack the three packages and install them into two projects:minimum: the oldest supported versions.latest: the newest versions.Each project runs codegen, type-checks the output with
bundler,node10andnodenextresolution, and runs a Vite build. Two more tests check the error messages. CI runs them on Node 22(minimum we support) and 26(latest available LTS).Docs
baseTypesPathor thetypescriptplugin.